package io.renren.modules.app.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import io.renren.modules.app.dao.CarouselDao;
import io.renren.modules.app.entity.CarouselEntity;
import io.renren.modules.app.service.CarouselService;



@Service("carouselService")
public class CarouselServiceImpl implements CarouselService {
	@Autowired
	private CarouselDao carouselDao;
	
	@Override
	public CarouselEntity queryObject(Long id){
		return carouselDao.queryObject(id);
	}
	
	@Override
	public List<CarouselEntity> queryList(Map<String, Object> map){
		return carouselDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return carouselDao.queryTotal(map);
	}
	
	@Override
	public void save(CarouselEntity carousel){
		carouselDao.save(carousel);
	}
	
	@Override
	public void update(CarouselEntity carousel){
		carouselDao.update(carousel);
	}
	
	@Override
	public void delete(Long id){
		carouselDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Long[] ids){
		carouselDao.deleteBatch(ids);
	}

	@Override
	public List<CarouselEntity> queryEffectiveList() {
		return carouselDao.queryEffectiveList();
	}
	
}
